package com.liu.yml.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

@Data
@Component
/**
 * 1.读取额外配置，方式一
 * @PropertySource("classpath:application-abc.yml")
 * @Value("${appId}")
 *
 * 2. 方式二
 * # active: dev,abc  主模块中加入环境配置
 * @ConfigurationProperties(prefix = "wechat")
 */


@ConfigurationProperties(prefix = "wechat")
public class WechatUtil {
    private String appId;
    private String secret;

}
